package com.example.springboot.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

@Data
public class Pest {
    private Integer id;
    private String name;
    private String basicInformation;//基本信息
    private String morphologicalCharacteristics;//形态特征
    private String livingHabits;//生活习性
    private String occurrencePattern;//发生规律
    private String hazardCharacteristics;//危害特点
    private String controlMethods;//防治方法

    private List<String> categories;

    private String category;

    // 添加图片URL列表字段
    private List<String> cover;

    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate createTime;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDate updateTime;
}
